aa ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab
ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab
ab ab ac ac ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab
ab ad ae ae af ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab
ag ah ai aj ak ag ag ag al ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab
am an ao ao ak am am am am ag ag al ab ab ab ab ab ab ap ag al ab ab ab
aq ao ao ao ak am am ar am am am as ab ab ab ab ap ag am am as ab ab ab
ao ao ao ao ak am am am am am am at ab ap ag ag am am am am am al ab ab
au ao ao av am am am am am am at ab ab aw am am am am am am am am al ab
ax ao ao ak am am am am am as ab ab ap am am am am am ay am am am am ag
ao ao ao ak am am am am am as ab ap am am am am am am am am am am am am
az ao ao ak am am am am am aA aB aC am am am am am am am am am am am am
ah ao ao aD am am am am am at ab aw am am aE aF aF aG am am am am am am
ah ao ao ao aD am aH aH at ab ab aw am am aI aJ aJ aK am am am am am am
aH aL az ao ao aM ab ab ab ab ap am am am aN aO aJ aK am am am am am am
ab ab aP ao ao aQ ab ap al ab aw am am am am aI aJ aR aG am am am am am
ab ab aS ao ao aT ag am as ab aU aH am am am aN aO aJ aK am am am am am
ab ab aV ao ao ak am am as ab ab ab aU am am am aI aJ aK am am am am am
ap ag an ao aW am am am am ag al ab ab aw am am aN aX aY am am am am at
aw an ao ao ak am am am am am am al ab aw am am am am am am am am at ab
aZ ao ao ao ak am am am am am am as ab aU aH aH aH aH aH am am at ab ab
an ao ao aW am am am am am am am as ab ab ab ab ab ab ab aU at ab ab ab
ao ao aW am am am am am am am am am ag ag ag ag ag al ab ab ab ab ab ab
ao aW am am am am am am am am am am am am am am aH at ab ab ab ab ab ab

:def
battle_bg=generic.png
level_left=world0x0.txt
level_right=world2x0.txt
level_down=world1x1.txt
level_downleft=world0x1.txt
level_downright=world2x1.txt
:aa
pix("water/water.png")
walk(0)
if(stat("level"), "<", 2)
	mapstat("addmonster", "Orc")
	end()
endif
if(stat("level"), "<", 4)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	end()
endif
if(stat("level"), "<", 6)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	end()
endif
if(stat("level"), "<", 8)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Acid Slime")
	end()
endif
if(stat("level"), "<", 10)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Giant Spider")
	end()
endif
if(stat("level"), "<", 12)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Wizard")
	end()
endif
if(stat("level"), "<", 14)
	mapstat("addmonster", "Orc")
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Goblin")
	end()
endif
if(stat("level"), "<", 16)
	mapstat("addmonster", "Ferocious Armless")
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Skeleton")
	end()
endif
if(stat("level"), "<", 18)
	mapstat("addmonster", "Highway Bandit")
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Troll")
	end()
endif
if(stat("level"), "<", 20)
	mapstat("addmonster", "Acid Slime")
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Death Knight")
	end()
endif
if(stat("level"), "<", 22)
	mapstat("addmonster", "Giant Spider")
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Bronze Golem")
	end()
endif
if(stat("level"), "<", 24)
	mapstat("addmonster", "Wizard")
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Dark Goblin")
	end()
endif
if(stat("level"), "<", 26)
	mapstat("addmonster", "Goblin")
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Iron Golem")
	end()
endif
if(stat("level"), "<", 28)
	mapstat("addmonster", "Skeleton")
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Gold Dragon")
	mapstat("addmonster", "Gold Dragon")
	end()
endif
if(stat("level"), "<", 28)
	mapstat("addmonster", "Troll")
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Gold Dragon")
	mapstat("addmonster", "Lost Soul")
	mapstat("addmonster", "Lost Soul")
	end()
endif
if(stat("level"), "<", 30)
	mapstat("addmonster", "Death Knight")
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Gold Dragon")
	mapstat("addmonster", "Lost Soul")
	mapstat("addmonster", "Ice Dragon")
	mapstat("addmonster", "Ice Dragon")
	end()
endif
if(stat("level"), "<", 32)
	mapstat("addmonster", "Bronze Golem")
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Gold Dragon")
	mapstat("addmonster", "Lost Soul")
	mapstat("addmonster", "Ice Dragon")
	mapstat("addmonster", "Platinum Golem")
	mapstat("addmonster", "Platinum Golem")
	end()
endif
if(stat("level"), "<", 34)
	mapstat("addmonster", "Dark Goblin")
	mapstat("addmonster", "Iron Golem")
	mapstat("addmonster", "Gold Dragon")
	mapstat("addmonster", "Lost Soul")
	mapstat("addmonster", "Ice Dragon")
	mapstat("addmonster", "Platinum Golem")
	mapstat("addmonster", "Black Dragon")
	mapstat("addmonster", "Black Dragon")
	end()
endif
#above level 34:
mapstat("addmonster", "Iron Golem")
mapstat("addmonster", "Gold Dragon")
mapstat("addmonster", "Lost Soul")
mapstat("addmonster", "Ice Dragon")
mapstat("addmonster", "Platinum Golem")
mapstat("addmonster", "Black Dragon")
mapstat("addmonster", "Black Dragon")
:ab
pix("water/water.png")
walk(0)
:ac
pix("water_hills/hills_n_water.png")
walk(0)
:ad
pix("water/water_se2.png")
walk(0)
addpix("hills/hills_w_trans.png")
:ae
walk(0)
pix("hills/hills_n4.png")
:af
pix("water/water_sw.png")
walk(0)
addpix("hills/hills_e_trans.png")
:ag
pix("water/water_s.png")
walk(1)
:ah
pix("hills/hills_w.png")
walk(0)
:ai
walk(0)
pix("hills/hills_n4_double.png")
:aj
walk(0)
pix("hills/hills_n_center.png")
:ak
pix("hills/hills_e.png")
walk(0)
:al
pix("water/water_sw.png")
walk(1)
:am
pix("grass.png")
walk(1)
:an
pix("hills/hills_n2_e.png")
walk(0)
:ao
pix("hills/hills_n4.png")
walk(0)
:ap
pix("water/water_se.png")
walk(1)
:aq
pix("hills/hills_n2_e_double.png")
walk(0)
:ar
pix("grass.png")
walk(1)
addpix("castle.png")
Action
move("town2.txt", 20, 30)
hero("hero_n")
:as
pix("water/water_w.png")
walk(1)
:at
pix("water/water_nw.png")
walk(1)
:au
pix("hills/hills_n4.png")
walk(0)
Action
move("dungeon1.txt", 2, 54)
hero("hero_s")
:av
pix("hills/mine_e.png")
walk(1)
Action
if(var("shop2_spider1"), "=", 1)
	if(var("shop2_spider2"), "=", 0)
		dialog("The soldier allows you to pass. 'I'd go with you, but I'm \
		deathly afraid of spiders'")
	endif
	move("dungeon1.txt", 58, 30)
	hero("hero_s")
else
	dialog("A worried-looking soldier guards the entrance. 'Sorry Sir, but no \
	one is allowed in the tunnel untill we clear it out.'")
endif
:aw
pix("water/water_e.png")
walk(1)
:ax
pix("hills/hills_n3_e.png")
walk(0)
:ay
pix("town.png")
walk(1)
Action
move("town1.txt", 16, 32)
hero("hero_n")
:az
pix("hills/hills_w2.png")
walk(0)
:aA
walk(1)
if(var("town1_bridge8"), "=", 1)
	pix("grass.png")
else
	pix("water/water_w.png")
endif
:aB
if(var("town1_bridge8"), "=", 1)
	pix("water/bridge_ew.png")
	walk(1)
else
	pix("water/water.png")
	walk(0)
endif
:aC
walk(1)
if(var("town1_bridge8"), "=", 1)
	pix("grass.png")
else
	pix("water/water_e.png")
endif
:aD
pix("hills/hills_n2_w.png")
walk(0)
:aE
pix("forest_nw2.png")
walk(1)
:aF
pix("forest_n.png")
walk(1)
:aG
pix("forest_ne.png")
walk(1)
:aH
pix("water/water_n.png")
walk(1)
:aI
pix("forest_w.png")
walk(1)
:aJ
pix("forest.png")
walk(1)
:aK
pix("forest_e.png")
walk(1)
:aL
pix("hills/hills_s.png")
walk(1)
addpix("water/water_n_trans.png")
:aM
pix("water/water_nw.png")
walk(0)
addpix("hills/hills_e_trans.png")
:aN
pix("forest_sw.png")
walk(1)
:aO
pix("forest_sw2.png")
walk(1)
:aP
pix("water/diag_3.png")
walk(0)
addpix("hills/hills_w_trans.png")
:aQ
pix("water/water.png")
walk(0)
addpix("hills/hills_e_trans.png")
:aR
pix("forest_ne2.png")
walk(1)
:aS
pix("water/water.png")
walk(0)
addpix("hills/hills_w_trans.png")
:aT
pix("water/water_se.png")
walk(0)
addpix("hills/hills_e_trans.png")
:aU
pix("water/water_ne.png")
walk(1)
:aV
pix("water/land_s.png")
walk(0)
addpix("hills/hills_w_trans.png")
:aW
pix("hills/hills_e2.png")
walk(0)
:aX
pix("forest_s.png")
walk(1)
:aY
pix("forest_se.png")
walk(1)
:aZ
pix("hills/hills_w.png")
walk(0)
addpix("water/water_e_trans.png")
